package com.bunnyhsu.mapper;

import com.bunnyhsu.model.User;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Administrator on 2017/6/22.
 */
public interface UserMapper {
    @Select("SELECT user_id, user_name, user_pass, user_info FROM t_user WHERE user_id = #{user_id}")
    User selectUser(int id);

    @Select("SELECT * FROM t_user")
    List<User> selectAll();
}
